/* 聊天容器样式 */
.chat-container {
  padding-top: 2rem;
}

.chat-box {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  height: 600px;
  display: flex;
  flex-direction: column;
}

/* 消息区域样式 */
.chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
}

.message {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.message-content {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.5;
}

/* AI消息样式 */
.ai-message {
  align-items: flex-start;
}

.ai-message .message-content {
  background-color: #f0f2f5;
  color: #333;
}

/* 用户消息样式 */
.user-message {
  align-items: flex-end;
}

.user-message .message-content {
  background-color: #1a73e8;
  color: white;
}

/* 输入区域样式 */
.chat-input {
  padding: 20px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
}

.chat-input textarea {
  flex-grow: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  resize: none;
  font-size: 16px;
  font-family: inherit;
}

.chat-input textarea:focus {
  outline: none;
  border-color: #1a73e8;
}

.send-button {
  padding: 0 24px;
  background-color: #1a73e8;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.send-button:hover {
  background-color: #1557b0;
}

.send-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}